home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Team17-HDinst / ProjectX-SE / Install-ProjectX_SE next >
Text File  |  1997-06-23  |  2KB  |  101 lines

  1.  
  2. ;----------------------------
  3.  
  4. ;try to figure out a place where the user usually installs his games
  5. (if (exists "Games:" (noreq) )
  6.     (set @default-dest "Games:")
  7.     (if (exists "SYS:Games" (noreq) )
  8.         (set @default-dest "SYS:Games")
  9.         (if (exists "Work:Games" (noreq) )
  10.             (set @default-dest "Work:Games")
  11.             (if (exists "JEUX:" (noreq) )
  12.                (set @default-dest "JEUX:")
  13.                (set @default-dest "SYS:")
  14.             )
  15.         )
  16.     )
  17. )
  18.  
  19.  
  20. (set @default-dest
  21. (askdir
  22.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  23.     (help @askdir-help)
  24.     (default @default-dest)
  25.     (disk)
  26. )
  27. )
  28.  
  29. (set #dest (tackon @default-dest @app-name))
  30.  
  31. (set #CI_unit
  32.     (askchoice
  33.         (prompt "From which disk unit do you want\nto install the game")
  34.         (help    @askoptions-help)
  35.         (choices
  36.            "DF0:"
  37.            "DF1:"
  38.            "DF2:"
  39.            "DF3:"
  40.         )
  41.     )
  42. )
  43.  
  44. (set #CI_drive ("DF%ld:" #CI_unit))
  45.  
  46.  
  47. (makedir #dest
  48.     (help @makedir-help)
  49.     (infos)
  50. )
  51.  
  52. ;----------------------------
  53.  
  54. (copyfiles
  55.     (help @copyfiles-help)
  56.     (source "ProjectXHD")
  57.     (dest #dest)
  58. )
  59. (copyfiles
  60.     (help @copyfiles-help)
  61.     (source "ProjectXHD.info")
  62.     (dest #dest)
  63. )
  64.  
  65. (copyfiles
  66.     (help @copyfiles-help)
  67.     (source "pxse_hd.readme.info")
  68.     (dest #dest)
  69. )
  70.  
  71. (copyfiles
  72.     (help @copyfiles-help)
  73.     (source "pxse_hd.readme")
  74.     (dest #dest)
  75. )
  76.  
  77. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  78.     (if
  79.         (= 0 (run ("rob2file %ld \"%s/ProjectX.disk1\" 2 159 123898 OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  80.         ("")
  81.         (abort "\"rob2file\" must be in your PATH !")
  82.     )
  83.  
  84. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  85.     (if
  86.         (= 0 (run ("rob2file %ld \"%s/ProjectX.disk2\" 0 159 123898 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  87.         ("")
  88.         (abort "\"rob2file\" must be in your PATH !")
  89.     )
  90.  
  91. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  92.     (if
  93.         (= 0 (run ("rob2file %ld \"%s/ProjectX.disk3\" 0 159 123898 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  94.         ("")
  95.         (abort "\"rob2file\" must be in your PATH !")
  96.     )
  97.  
  98.  
  99. (exit)
  100.  
  101.